<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span th:text="${hello}"></span>


<form id="login-form" th:action="@{/test/hello}">
    <button>提交</button>
</form>


<div>
    <table>
        <tr>
            <td>编号</td>
            <td>唯一ID</td>
            <td>名字</td>
            <td>住址</td>
        </tr>

        <tr th:each="user,userState:${users}">
            <td th:text="${userState.index}"></td>
            <td th:text="${user.getId()}"></td>
            <td th:text="${user.getName()}"></td>
            <td th:text="${user.getAddress()}"></td>
        </tr>
    </table>
</div>


<div th:each="map,mapStat:${dataMap}">
    <div th:text="${map}"></div>
    key:<span th:text="${map.key}"></span><br/>
    value:<span th:text="${map.value}"></span><br/>
    ==============================================
</div>


<div th:each="name:${names}">
    <span th:text="${name}"></span>
</div>



<div>
    获取Datal类型
</div>
<div>
   <span th:text="${#dates.format(now,'yyyy-MM-dd hh:ss:mm')}">
</div>

</body>
</html>